.box {
  width: 100px;
  height: 100px;
  border-radius: 20px;
  background-color: aqua;
  position: relative;
  top: 0;
  animation: top 5s infinite;
}

@keyframes top {
  50% {
    top: -100px;
  }
}